package cn.zlz.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dell
 * @date 2021-03-09 11:28
 * @description
 */


@RestController
@RequestMapping("/api/email")
public class EmailSendController {

    @GetMapping("/send")
    public String sendCode(@RequestParam(value = "email") String email,@RequestParam(value = "code") String code){
        System.out.println("发送验证码"+code+"到邮箱"+email);
        return code;
    }


}
